package com.ysw.rpc.common.config;

import com.ysw.rpc.common.constants.RpcConstants;
import io.netty.handler.codec.LengthFieldBasedFrameDecoder;

/**
 * @author YinShangwen
 * @since 2023/4/4 14:02
 */
public class MessageLengthFieldDecoder extends LengthFieldBasedFrameDecoder {
    public MessageLengthFieldDecoder() {
        super(RpcConstants.MAX_BUFFER_SIZE, 8, 4);
    }
}
